<?php
/**
 * @Author: Marte
 * @Date:   2017-11-20 17:56:44
 * @Last Modified by:   Marte
 * @Last Modified time: 2017-11-25 17:23:29
 */
if (isset($_GET[1])){
 //指定要操作的模型 id 删除
 $news = new Model('news');
 $news->id($_GET[1]);
 $news->remove();
 }
 //返回请求前的页面
 Redirect::back();
?>
